package com.neusoft.feign;

import com.neusoft.po.Course;
import com.neusoft.po.ResponseBean;
import org.springframework.stereotype.Component;

// 回退功能的编写
@Component
public class CourseFeignError implements CourseFeignClient {
    @Override
    public ResponseBean<Course> getCourse(String cno) {
        ResponseBean<Course> rb = new ResponseBean<>(700, "后端服务节点异常");
        return rb;
    }
}
